package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceDataVo;

import java.util.List;

/**
 * @Description DeviceDataService
 * @Author shejunlian
 * @Date 2024-07-24
 */
public interface DeviceDataService {
    /**
     * 分页查询请求模型监测数据
     * @param deviceDataPageReqDto
     * @return
     */
    PageResponse<DeviceDataVo> selectByPage(DeviceDataPageReqDto deviceDataPageReqDto);

    /**
     * 按天查询统计指标数据
     * @param iotId
     * @param functionId
     * @param startTime
     * @param endTime
     * @return
     */
    List<DeviceDataGraphVo>  queryDeviceDataListByDay(String iotId, String functionId, Long startTime, Long endTime);

    /**
     * 按周统计查询指标数据
     * @param iotId
     * @param functionId
     * @param startTime
     * @param endTime
     * @return
     */
    List<DeviceDataGraphVo> queryDeviceDataListByWeek(String iotId, String functionId, Long startTime, Long endTime);
}
